<?php defined('_JEXEC') or die; ?>

<div id="subHeader">
	<div class="login" style="width:350px;" >
		<img alt="Sartu" src="<?php echo JURI::root();?>templates/lingolangtemplate/images/kandadoa.jpg">
		<div class="selected">Pasahitza ahaztu duzu?</div>
	</div>
</div>
<div id="left">
	<div id="menu">
		<ul>
		<?php
			$db =& JFactory::getDBO();
			$query = "SELECT *
						FROM `#__hizkuntzak_languages`
						WHERE `#__hizkuntzak_languages`.`active`=1
						ORDER BY `#__hizkuntzak_languages`.`name_eu` ASC";
			$db->setQuery( $query );
			$langus=$db->loadObjectList();

			$color = 0;
			$text_color = "gorria";
			foreach($langus as $la){
				if ($color == 0) {
					$text_color = "gorria";
					$color++;
				}else if($color == 1){
					$text_color = "morea";
					$color++;
				}else if ($color == 2) {
					$text_color = "laranja";
					$color++;
				}else if ($color == 3) {
					$text_color = "urdina";
					$color++;
				}else if ($color == 4) {
					$text_color = "berdea";
					$color = 0;
				}
				print("<li ><a class='$text_color' href='index.php?option=com_hizkuntzak&task=mainMenu&hlang=$la->iso_code'>$la->name_eu</a></li><br/>");
			};
		?>
		</ul>
	</div>
</div>
<div id="content">
	<form id="pass_form" action="<?php echo JRoute::_( 'index.php?option=com_user&task=requestreset' ); ?>" method="post" class="josForm form-validate">
		<p>Zure e-mail sartu ezazu mesedez. Egiaztapen pasahitza bidaliko dizugu. Pasahitz behin jasota, zure konturako pasahitz berria aukeratu ahalko duzu. </p>
		<label for="email">Email helbidea:</label>
		<input id="email" name="email" type="text" class="required validate-email" />
		<button type="submit" class="validate">Bidali</button>
		<?php echo JHTML::_( 'form.token' ); ?>
	</form>
</div>
